
// createApp生成应用实例对象
import { createApp } from 'vue'
import App from './App.vue'
// 导入router实例和store实例
import router from './router'
import store from './store'
// 引入初始化样式文件
import '@/styles/common.less'
// 引入全局组件
import componentPlugin from '@/components'
// 插件注册的方法 createApp() =>  app => app.use(插件)

// 引入指令插件进行注册
import direactivePlugin from '@/directives/index.js'
createApp(App).use(store).use(router).use(componentPlugin).use(direactivePlugin).mount('#app')
